package com.zyd.shiro.persistence.beans;

import com.zyd.shiro.business.annotation.FieldValue;
import com.zyd.shiro.business.annotation.TitleValue;
import com.zyd.shiro.business.enums.MenuEnum;
import com.zyd.shiro.framework.object.AbstractDataDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2020-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TitleValue(name = "调拨",nume = MenuEnum.MODULE,code = "transfer")
public class PakTransfer extends AbstractDataDO {

    @FieldValue(name = "编号")
    private String unicode;

    @FieldValue(name = "调出时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date transferTime;

    @FieldValue(name = "备注")
    private String remark;

    @FieldValue(name = "调出位置")
    private Long olocation;

    @FieldValue(name = "调出位置名称")
    private String olocationName;

    @FieldValue(name="调入位置")
    private Long ilocation;

    @FieldValue(name = "调入位置名称")
    private String ilocationName;

    @FieldValue(name="调入部门")
    private Long idept;

    @FieldValue(name = "调入部门名称")
    private String ideptName;

    @FieldValue(name="调入机构")
    private Long iorg;

    @FieldValue(name = "调入机构名称")
    private String iorgName;

    @FieldValue(name = "调拨类型")
    private Integer type;

    @FieldValue(name = "审批状态")//0审批中 1审批通过 2审批拒绝 3撤销
    private Integer appstatus;

}
